function fun2() {
  console.log("这是 install注册的fun2");
}

export default {
  install(Vue) {
    Vue.fun2 = fun2;
    Vue.mixin({
      created() {
        this.$fun2 = fun2;
      },
    });
  },
};
